package com.centaline.androidsalesblog.api;

import com.android.volley.Request;
import com.centaline.androidsalesblog.base.BaseApi;
import com.centaline.androidsalesblog.constants.AppConstant;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * BizCommon
 * Created by guilin on 16/4/12.
 */
public abstract class BizCommonApi<T> extends BaseApi<T> {

    public BizCommonApi(Class<?> tag, Class<T> aClass, IResponseListener<T> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    @Override
    protected int getMethod() {
        return Request.Method.POST;
    }

    @Override
    protected void setParams() {
        putParams("CityCode", AppConstant.CityCode);
        putParams("AppName", "APP");
    }

    @Override
    protected String getIp() {
        return AppConstant.BizCommonUrl;
    }
}
